#!/bin/bash

# Change to the directory 
# cd /path/to/Build
cd /Users/xiaosongw/Dropbox/Research/InformedSources/Replication/Build/Code

# Define the path to the Stata executable
STATA_PATH="/Applications/Stata/StataMP.app/Contents/MacOS/StataMP" # Adjust this path to where Stata is installed on your system


# Run the Python script

jupyter nbconvert --to notebook --inplace --execute 1_combine_vic_2005_2019_prices.ipynb


jupyter nbconvert --to notebook --inplace --execute 2_clean_address_obtain_geocoordinates.ipynb


jupyter nbconvert --to notebook --inplace --execute 3_generate_melbourne_sample.ipynb


sudo $STATA_PATH -b do 4_makedata.do


jupyter nbconvert --to notebook --inplace --execute 5_od_table.ipynb


jupyter nbconvert --to notebook --inplace --execute 6_petrolspy.ipynb


jupyter nbconvert --to notebook --inplace --execute 7_prices_interpolation.ipynb


jupyter nbconvert --to notebook --inplace --execute 8_tz2tz.ipynb


jupyter nbconvert --to notebook --inplace --execute 9_st2tz_tz2st.ipynb


jupyter nbconvert --to notebook --inplace --execute 10_routes.ipynb


jupyter nbconvert --to notebook --inplace --execute 11_daily_share_month_volume.ipynb





